/** 搜索条件配置 */
const searchOption = [];

/** 表格table配置 */
const tableOption = [];

//表单相关配置配置
const formOption = {
  // 表单布局 可选值：horizontal(默认) | inline | vertical
  layout: "vertical",
  // 表单中label的长度
  labelCol: { span: 8 },
  // 表单中输入框的长度
  //  wrapperCol?:  number
  //字段配置
  modules: [
    {
      title: "基本信息",
      fieldList: [
        {
          component: "Input",
          label: "Input框",
          field: "input",
          rules: [{ required: true, message: "请输入Input" }],
        },
        {
          component: "Select",
          label: "Select框",
          field: "select",
          rules: [{ required: true, message: "请选择Select" }],
          options: [],
          allowClear: true,
          dictCode: "select_demo",
        },
        {
          component: "Radio",
          label: "Radio框",
          field: "radio",
          rules: [{ required: true, message: "请选择Radio" }],
          options: [],
          dictCode: "select_demo",
        },
        {
          component: "Checkbox",
          label: "Checkbox框",
          field: "checkbox",
          rules: [{ required: true, message: "请选择Checkbox" }],
          options: [],
          dictCode: "select_demo",
        },
        {
          component: 'Upload',
          label: '上传框',
          field: 'upload',
          rules: [{ required: true, message: '请上传文件' }],
          listType:'picture-card',
        }
      ],
    },
  ],
};

//导出所有配置
export { searchOption, tableOption, formOption };
